/**
 * Created by WuHao on 2017/1/31.
 */

var mongoose = require('mongoose');

/**
 * 定义用户表结构
 * @type {mongoose.Schema}
 */
module.exports = new mongoose.Schema({
    // 用户名
    username: String,

    // 密码
    password: String,

    // 是否是管理员
    isAdmin: {
        type: Boolean,
        default: false
    }
});